package com.wjk.Demo05;

public class TestSwimming {
    public static void main(String[] args) {
        goSwim(new Swimming() {
            @Override
            public void swim() {
                System.out.println("老铁们奥，今天我们去游泳吧");
            }
        });
    }

    public static void goSwim(Swimming swim){
        swim.swim();
    }
}

interface Swimming{
    void swim();
}
